﻿﻿@using Magicodes.WeiChat.Infrastructure
@{
    ViewBag.Title = "JSSDK";
    //启用JSSDK
    //注意配置JSSDK安全域名
    ViewBag.UseJSSDK = true;
}
<div class="aui-content">
    <div class="aui-btn aui-btn-success aui-btn-block" data-bind="click:closeWindow">关闭当前</div>
</div>
@section scripts{
    <script type="text/javascript">
        function viewModel() {
            var self = this;
            this.closeWindow = function () {
                wc.weiChat.window.close();
            }
        }
        $(function () {
            window.CurrentModel = new viewModel();
            ko.applyBindings(window.CurrentModel);
        });
    </script>
}
